from data import Data
import numpy as np
import pandas as pd
import datetime
import time
data = Data()
while(True):
    struct_time = time.localtime()
    str_time = time.strftime('%Y-%m-%d %H:%M:%S', struct_time)
    print(str_time)
    np.random.seed(int(time.time()))     
    data.initial(200)
    data.GA(max_step=20000 ,memory_size=0.2, tournament_M=4,max_no_new_best = 200)
    # data.show_gantt_chart((100,50))
    print(data.best_step)
    data.save_result()

print('结束')
